#include <stdio.h>
#include <string.h>
int main()
{
	char a[100];
	int b[3];
	int i = 0, j = 0;
	int len;
	int total = 0;
	//memset(a, 0, sizeof(a));
	scanf("%s", a);
	len = strlen(a);
	while (i < len)
	{
		total += a[i] - '0';
		++i;
	}
	//printf("%d\n", total);
	while (total / 10)
	{
		b[j] = total % 10;
		++j;
		total /= 10;
	}
	b[j] = total;
	++j;
	while (j > 1)
	{
		switch (b[j - 1])
		{
		case 0:printf("ling "); break;
		case 1:printf("yi "); break;
		case 2:printf("er "); break;
		case 3:printf("san "); break;
		case 4:printf("si "); break;
		case 5:printf("wu "); break;
		case 6:printf("liu "); break;
		case 7:printf("qi "); break;
		case 8:printf("ba "); break;
		case 9:printf("jiu "); break;
		default:printf("error"); break;
		}
		--j;
	}
	switch (b[j - 1])
	{
	case 0:printf("ling"); break;
	case 1:printf("yi"); break;
	case 2:printf("er"); break;
	case 3:printf("san"); break;
	case 4:printf("si"); break;
	case 5:printf("wu"); break;
	case 6:printf("liu"); break;
	case 7:printf("qi"); break;
	case 8:printf("ba"); break;
	case 9:printf("jiu"); break;
	default:printf("error"); break;
	}
}
